
GO

/****** Object:  Table [dbo].[CusFriendlyUseMark]    Script Date: 12/23/2011 23:07:38 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[CusFriendlyUseMark](
	[CusFriendlyUseMarkId] [bigint] IDENTITY(1,1) NOT NULL,
	[CusFriendlyId] [bigint] NOT NULL,
	[DateUse] [datetime] NOT NULL,
	[MarkUse] [int] NOT NULL,
	[Contents] [nvarchar](255) NOT NULL,
	[Note] [nvarchar](255) NOT NULL,
	[TimeStamp] [timestamp] NOT NULL,
	[ClientCode] [nvarchar](255) NULL,
	[SyncCode] [nvarchar](255) NULL,
	[TimeStampCode] [varbinary](8) NULL,
 CONSTRAINT [PK_CusFriendlyUseMark] PRIMARY KEY CLUSTERED 
(
	[CusFriendlyUseMarkId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[CusFriendlyUseMark]  WITH CHECK ADD  CONSTRAINT [FK_CusFriendlyUseMark_CusFriendly] FOREIGN KEY([CusFriendlyId])
REFERENCES [dbo].[CusFriendly] ([CusFriendlyId])
GO

ALTER TABLE [dbo].[CusFriendlyUseMark] CHECK CONSTRAINT [FK_CusFriendlyUseMark_CusFriendly]
GO


